The phrase "to calm the dog" means to make a dog less excited or anxious by soothing or comforting them.